﻿#include "player_conf.h"
#include "player_info.h"

CPlayerConfParser::CPlayerConfParser()
    : m_cfg(new PlayerConf())
{
    
}

CPlayerConfParser::~CPlayerConfParser()
{
    
}

bool CPlayerConfParser::Parser(XMLElement* root)
{
    m_cfg->sync_info_interval = root->FirstChildElement("sync_info_interval")->UnsignedText();
    m_cfg->task_test_parallel = root->FirstChildElement("task_test_parallel")->UnsignedText();
    return true;
}

const PlayerConf* CPlayerConfParser::cfg()
{
    return m_cfg;
}
